package me.minusli.SpringBootWebProject.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/demo/")
public class Demo {
    @RequestMapping("hello")
    public Map<String, String> hello(@RequestParam String name) {
        Map<String, String> ret = new HashMap<>();
        ret.put("msg", "hello, " + name);
        return ret;
    }
}
